package com.ly.service.impl;

import com.ly.dao.AccountDao;
import com.ly.service.AccountService;

public class AccountServiceImpl implements AccountService {
    private AccountDao accountDao;
    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }
    @Override
    public void zz(String out, String in, double money) {
        accountDao.updateSubMoneyByName(out,money);
//        System.out.println(1/0);
        accountDao.updateAddMoneyByName(in,money);
    }
}
